package com.mf.entity.req;

import java.io.Serial;

import com.mf.groups.GroupsUpdateInterface;
import com.mf.groups.GroupsAddInterface;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Null;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.time.LocalDate;

import lombok.Data;

/**
 * 分拣产出明细提交
 *
 */
@Data
public class ReqSortOut implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @NotNull(message = "id不能为空", groups = {GroupsUpdateInterface.class})
    @Null(message = "新增id必须为空", groups = {GroupsAddInterface.class})
    private Integer id;
    @Schema(description = "分拣工单id")
    @NotNull(message = "sortId不能为空", groups = {GroupsAddInterface.class})
    private Integer sortId;

    @Schema(description = "分拣工单标识")
    @NotBlank(message = "分拣工单标识不能为空", groups = {GroupsAddInterface.class})
    private String sortFlag;

    @Schema(description = "物料id")
    @NotNull(message = "materialId不能为空", groups = {GroupsAddInterface.class})
    private Integer materialId;
    @Schema(description = "物料名称")
    @NotBlank(message = "materailName不能为空", groups = {GroupsAddInterface.class})
    private String materailName;
    @Schema(description = "0-没有下工序;1-撕碎；2-粉碎")
    @NotNull(message = "nextProcess不能为空", groups = {GroupsAddInterface.class})
    private Integer nextProcess;
    @Schema(description = "预计产出重量")
    @NotNull(message = "weight不能为空", groups = {GroupsAddInterface.class})
    private Double weight;



    @Schema(description = "备注")
    private String remark;
}
